class ParticleManager{
    private static _instance:ParticleManager = null;

    constructor()
    {

    }

    public static instance():ParticleManager
    {
        if(!ParticleManager._instance)
        {
            ParticleManager._instance = new ParticleManager();
        }
        return ParticleManager._instance;
    }

    public getParticle(textureName, JsonName)
    {
        let system:particle.ParticleSystem;
        let texture = RES.getRes(textureName + '_png');
        let config = RES.getRes(JsonName + "_json");
        system = new particle.GravityParticleSystem(texture, config);
        return system;
    }
}